package com.lifeng.patterns.factory.simpleFactory;

/**
 * Created by lifeng on 2019/9/18.
 */
public class TestMain {
    public static void main(String[] args){
        try {
            //点餐 创建兰州拉面
            INoodles noodles = SimpleNoodlesFactory.createNoodles(SimpleNoodlesFactory.LANZHOU);
            noodles.desc();
            //创建山西刀削面
            //noodles = SimpleNoodlesFactory.createNoodles(SimpleNoodlesFactory.DAOXIAO);
            //noodles.desc();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
